<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>コントロールパネル</title>
    <link href="./assets/styles/default.css" rel="stylesheet" />
    <script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="./assets/scripts/import.js" type="text/javascript"></script>    
</head>
<body>

{include file='include/header.inc.html'}

<div id="container">
	<aside id="accordion">
    	<div id="aside_inner">
    		{include file='include/menu.inc.html'}
        </div>
    </aside>
    
    <article>
    	<h2><span>&nbsp;</span>Item<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
            <ul>
            	<li><a href="{$smarty.server.SCRIPT_NAME}"><span>検索</span></a></li>
            	<li><a href="{$smarty.server.SCRIPT_NAME}?op=regist"><span>登録</span></a></li>
            	<li><a href="{$smarty.server.SCRIPT_NAME}?op=rank"><span>表示設定</span></a></li>
            	<li class="active"><a href="{$smarty.server.SCRIPT_NAME}?op=setting"><span>基本設定</span></a></li>
            </ul>
        </nav>
        
        <section id="content">
            <h3>基本設定</h3>
            {if $phase == 'input'}
                    <p class="message">内容を確認し、更新ボタンをクリックしてください。</p>

                    <form name="fm" action="{$smarty.server.SCRIPT_NAME}" method="post" enctype="multipart/form-data">

                        <ul class="t_btns">
                            <li class="single refresh"><button type="button" class="chk_update"><em>&nbsp;</em>更新</button></li>
                        </ul>

                        <h4><span>&nbsp;</span>基本情報</h4>

                        {include file='item/include/setting_form.inc.html'}

                        <p class="button">
                                <button type="button" id="btn_update" class="submit"><span>更新</span></button>
                                <!--<input type="submit" value="← が動かないので 「submit」"/>-->
                        </p>
                        <input type="hidden" name="mode" value="" />
                        <input type="hidden" name="do" value="validate_setting_form"/>
                    </form>
            {/if}
            {if $phase == 'complete'}
                    <p class="message">{$message}</p>
                    <ul class="result_btn">
                            <li><a href="{$smarty.server.SCRIPT_NAME}?op=setting">設定に戻る</a></li>
                    </ul>
            {/if}
        </section>
    </article>
    
</div>

{include file='include/footer.inc.html'}

</body>
</html>